const Router = require('koa-router')

const rightRouter = new Router({prefix:'/rights'})

const {
  verifyAuth
} = require('../middleware/authMiddleware')
const {
  getRightList
} = require('../controller/rightController')
//获取权限列表
rightRouter.get('/:type',verifyAuth,getRightList)
module.exports = rightRouter